package com.zlm.girlfriendmp.forest;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Var;
import com.zlm.girlfriendmp.model.RollApiResponse;
import com.zlm.girlfriendmp.model.RollDailyWord;
import com.zlm.girlfriendmp.model.RollIpSelf;
import com.zlm.girlfriendmp.model.RollWeather;

import java.util.List;

@BaseRequest(
        baseURL = "https://www.mxnzp.com",
        headers = {"app_id: mvuvhjerrknlpndt", "app_secret: cU95TndXVkl6c3hrWDNvdUNGMjcyZz09"})
public interface RollApiClient {

    /**
     * 全国天气信息查询，定时更新天气
     *
     * @param city 需要查询的城市
     * @return
     */
    @Get("/api/weather/current/${city}")
    RollApiResponse<RollWeather> currentWeather(@Var("city") String city);

    /**
     * 访问者IP信息查询
     *
     * @return
     */
    @Get("/api/ip/self")
    RollApiResponse<RollIpSelf> ipSelf();

    /**
     * 每日分享的精美语句
     */
    @Get("/api/daily_word/recommend")
    RollApiResponse<List<RollDailyWord>> dailyWord(@Query("count") Integer count);



}
